package com.horay.springclouddemo.client.eureka.git.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 配置控制器
 *
 * @author heyingcheng
 * @date 2019/11/3 18:11
 */
@RefreshScope
@RestController
public class ConfigController {

    @Value("${demo.provider.hystrix.name}")
    private String providerHystrixName;

    @GetMapping("config/hystrix/name")
    public String configHystrixName() {
        return providerHystrixName;
    }

}
